// 签到管理
import httpAPI from '../../utils/http.js'

export default {
  /**
   * 查询在岗查询报告
   */
  getReport (projectId, date) {
    return httpAPI.get(`system/check-point/${projectId}/check-log/inspect-report`, {
      date
    })
  },
  /**
   * 查询未签到列表
   */
  getNotSign(projectId, params) {
    return httpAPI.get(`system/check-point/${projectId}/check-log/un-check-in-list`, params)
  },
  /**
   * 区域查询列表
   */
  getAreaList(projectId, params) {
    return httpAPI.get(`system/check-point/${projectId}/check-log/list`, params)
  },
  /**
   * 提交巡查异常
   * @param {Object} idList id集合
   */
  submitErr(projectId, params) {
    return httpAPI.post(`system/check-point/${projectId}/check-log/inspect-result`, params)
  }
}
